<!-- 改为jsp后 如有需要可按照以下方式include file  -->
<!--<%@include file="Inc/SysProduct.jsp"%> -->
<!--<%@include file="Inc/Md5.jsp"%> -->

<!-- 改为jsp后 解开注释include file  -->
<!--<%@include file="Head.jsp"%>-->


<!-- <%
dim UserName,Password,PwdConfirm,Question,Answer,Sex,Email,HomePage,CompanyName,Add,Receiver,Postcode,Phone,Fax
UserName=trim(request("UserName"))
Password=trim(request("Password"))
PwdConfirm=trim(request("PwdConfirm"))
Question=trim(request("Question"))
Answer=trim(request("Answer"))
Sex=trim(Request("Sex"))
Email=trim(request("Email"))
HomePage=trim(request("HomePage"))
CompanyName=trim(request("CompanyName"))
Add=trim(request("Add"))
Receiver=trim(request("Receiver"))
Postcode=trim(request("Postcode"))
Phone=trim(request("Phone"))
Mobile=trim(request("Mobile"))
Fax=trim(request("Fax"))
if UserName="" or strLength(UserName)>14 or strLength(UserName)<4 then
	founderr=true
	errmsg=errmsg & "<br><li>请输入用户名(不能大于14小于4)</li>"
else
  	if Instr(UserName,"=")>0 or Instr(UserName,"%")>0 or Instr(UserName,chr(32))>0 or Instr(UserName,"?")>0 or Instr(UserName,"&")>0 or Instr(UserName,";")>0 or Instr(UserName,",")>0 or Instr(UserName,"'")>0 or Instr(UserName,",")>0 or Instr(UserName,chr(34))>0 or Instr(UserName,chr(9))>0 or Instr(UserName,"")>0 or Instr(UserName,"$")>0 then
		errmsg=errmsg+"<br><li>用户名中含有非法字符</li>"
		founderr=true
	end if
end if
if Password="" or strLength(Password)>12 or strLength(Password)<6 then
	founderr=true
	errmsg=errmsg & "<br><li>请输入密码(不能大于12小于6)</li>"
else
	if Instr(Password,"=")>0 or Instr(Password,"%")>0 or Instr(Password,chr(32))>0 or Instr(Password,"?")>0 or Instr(Password,"&")>0 or Instr(Password,";")>0 or Instr(Password,",")>0 or Instr(Password,"'")>0 or Instr(Password,",")>0 or Instr(Password,chr(34))>0 or Instr(Password,chr(9))>0 or Instr(Password,"")>0 or Instr(Password,"$")>0 then
		errmsg=errmsg+"<br><li>密码中含有非法字符</li>"
		founderr=true
	end if
end if
if PwdConfirm="" then
	founderr=true
	errmsg=errmsg & "<br><li>请输入确认密码(不能大于12小于6)</li>"
else
	if Password<>PwdConfirm then
		founderr=true
		errmsg=errmsg & "<br><li>密码和确认密码不一致</li>"
	end if
end if
if Question="" then
	founderr=true
	errmsg=errmsg & "<br><li>密码提示问题不能为空</li>"
end if
if Answer="" then
	founderr=true
	errmsg=errmsg & "<br><li>密码答案不能为空</li>"
end if
if Sex="" then
	founderr=true
	errmsg=errmsg & "<br><li>性别不能为空</li>"
else
	sex=cint(sex)
	if Sex<>0 and Sex<>1 then
		Sex=1
	end if
end if
if Email="" then
	founderr=true
	errmsg=errmsg & "<br><li>Email不能为空</li>"
else
	if IsValidEmail(Email)=false then
		errmsg=errmsg & "<br><li>您的Email有错误</li>"
   		founderr=true
	end if
end if
if Add="" then
	founderr=true
	errmsg=errmsg & "<br><li>收货地址不能为空</li>"
end if
if Postcode="" then
	founderr=true
	errmsg=errmsg & "<br><li>邮政编码不能为空</li>"
end if
if Phone="" then
	founderr=true
	errmsg=errmsg & "<br><li>联系电话不能为空</li>"
end if

if founderr=false then
	dim sqlReg,rsReg
	sqlReg="select * from [User] where UserName='" & Username & "'"
	set rsReg=server.createobject("adodb.recordset")
	rsReg.open sqlReg,conn,1,3
	if not(rsReg.bof and rsReg.eof) then
		founderr=true
		errmsg=errmsg & "<br><li>你注册的用户已经存在！请换一个用户名再试试！</li>"
	else
		rsReg.addnew
		rsReg("UserName")=UserName
		rsReg("Password")=md5(Password)
		rsReg("Question")=Question
		rsReg("Answer")=md5(Answer)
		rsReg("Sex")=Sex
		rsReg("Email")=Email
		rsReg("HomePage")=HomePage
		rsReg("CompanyName")=CompanyName
		rsReg("Add")=Add
		rsReg("Receiver")=Receiver
		rsReg("Postcode")=Postcode
		rsReg("Phone")=Phone
		rsReg("Mobile")=Mobile
		rsReg("Fax")=Fax
		rsReg("RegDate")=Now()
		rsReg("LockUser")=false
                session("UserName")=UserName
		rsReg.update
		founderr=false
	end if
	rsReg.close
	set rsReg=nothing
end if		
%> --> 
<html>
<body>
<table width="970" height="17" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td background="imgbys/top17.gif"></td>
  </tr>
</table>
<table width="970" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="4"></td>
  </tr>
</table>
<table width="970" height="416" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="264" valign="top"><!-- #include file="Loop.html" -->
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td height="4"></td>
        </tr>
      </table>
        <table width="264" height="24" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFCEB">
          <tr>
            <td width="14"><img src="imgbys/top19.gif" width="10" height="6" /></td>
              <td width="71" valign="middle" class="ab21">服务中心</td>
              <td width="179" valign="middle" class="ab3">SERVICE CENTER </td>
          </tr>
      </table>
        <table width="264" height="8" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td><img src="imgbys/top4.gif" width="264" height="8" /></td>
          </tr>
      </table>
        <table width="264" height="111" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td height="111" bgcolor="#F6F6F6"><table width="80%" height="8" border="0" cellpadding="0" cellspacing="0">
              <tr>
                <td></td>
              </tr>
              </table>
                  <table width="80%" height="30" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr>
                      <td width="24%" align="center"><img src="imgbys/top20.gif" width="12" height="11" /></td>
                      <td width="76%"><a href="UserEdit.html" class="linkleft1">修改会员资料</a> </td>
                    </tr>
              </table>
                <table width="80%" border="0" align="center" cellpadding="0" cellspacing="0" background="imgbys/line1.gif">
                  <tr>
                    <td height="1"></td>
                  </tr>
              </table>
                <table width="80%" height="30" border="0" align="center" cellpadding="0" cellspacing="0">
                  <tr>
                    <td width="24%" align="center"><img src="imgbys/top20.gif" width="12" height="11" /></td>
                      <td width="76%"><a href="UserEditPwd.html" class="linkleft1">修改会员密码</a></td>
                  </tr>
              </table>
                <table width="80%" border="0" align="center" cellpadding="0" cellspacing="0" background="imgbys/line1.gif">
                  <tr>
                    <td height="1"></td>
                  </tr>
              </table>
                <table width="80%" height="30" border="0" align="center" cellpadding="0" cellspacing="0">
                  <tr>
                    <td width="24%" align="center"><img src="imgbys/top20.gif" width="12" height="11" /></td>
                      <td width="76%"><a href="FeedbackMember.html" class="linkleft1">站内留言中心</a> </td>
                  </tr>
              </table>
                <table width="80%" border="0" align="center" cellpadding="0" cellspacing="0" background="imgbys/line1.gif">
                  <tr>
                    <td height="1"></td>
                  </tr>
              </table>
                <table width="80%" height="30" border="0" align="center" cellpadding="0" cellspacing="0">
                  <tr>
                    <td width="24%" align="center"><img src="imgbys/top20.gif" width="12" height="11" /></td>
                      <td width="76%"><a href="UserLogout.html?Action=Ch" class="linkleft1">退出会员中心</a> </td>
                  </tr>
              </table>
                <table width="80%" border="0" align="center" cellpadding="0" cellspacing="0" background="imgbys/line1.gif">
                  <tr>
                    <td height="1"></td>
                  </tr>
              </table>
                <table width="80%" height="48" border="0" cellpadding="0" cellspacing="0">
                  <tr>
                    <td></td>
                  </tr>
              </table></td>
          </tr>
        </table></td><td width="7" valign="top"></td>
    <td width="1" valign="top" bgcolor="#EAE5CF"></td>
    <td width="6" valign="top"></td>
    <td valign="top"><span id="tb_A101">
      <!--------------------显示最新产品的子程序结束--------------------->
      </span>
        <table width="692" height="23" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td width="10"><img src="imgbys/top19.gif" width="10" height="6" /></td>
            <td width="68" valign="middle" class="ab2">用户注册</td>
            <td width="452" valign="middle" class="ab3">REGISTER</td>
            <td width="162" class="ab1">您现在的位置 &gt;&gt; 用户注册</td>
          </tr>
        </table>
      <table width="692" height="4" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td background="imgbys/top18.gif"></td>
          </tr>
      </table>
      <table width="98%" height="15" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td height="15"></td>
          </tr>
      </table>
      <table width="589" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td height="335"><div align="center">
              <!-- <%
if founderr=false then
	call RegSuccess()
else
	call WriteErrmsg()
end if
%> -->
          </div></td>
        </tr>
      </table></td>
  </tr>
</table>
<!-- 改为jsp后 解开注释include file  -->
<!--<%@include file="Inc/Foot.jsp"%>-->
</BODY></HTML>

<!-- <%call CloseConn
sub WriteErrMsg()
    response.write "<table align='center' width='500' border='0' cellpadding='2' cellspacing='0' class='border'>"
    response.write "<tr class='title'><td align='center' height='30'>由于以下的原因不能注册用户！</td></tr>"
    response.write "<tr class='tdbg'><td align='left' height='100'><br>" & errmsg & "<p align='center'>【<a href='javascript:onclick=history.go(-1)'>返 回</a>】<br></p></td></tr>"
	response.write "</table>" 
end sub

sub RegSuccess()
    response.write "<table align='center' width='500' border='0' cellpadding='2' cellspacing='0' class='border'>"
    response.write "<tr class='title'><td align='center' height='30'>成功注册用户！</td></tr>"
    response.write "<tr class='tdbg'><td align='left' height='100'><br>你注册的用户名：" & UserName & "<p align='center'>【<a href='javascript:onclick=window.close()'>关 闭</a>】<br></p></td></tr>"
	response.write "</table>" 
end sub
%> -->
